package cn.wolfcode.shop.cloud.service;

import cn.wolfcode.shop.cloud.domain.User;
import cn.wolfcode.shop.cloud.vo.LoginVO;

public interface IUserService {
    User get(Long id);

    /**
     * 密码登入功能
     * @param loginVO
     * @return
     */
    String login(LoginVO loginVO);
    /**
     * 刷新redis中key的过期时间
     * @param token
     * @return
     */
    boolean refreshTime(String token);

    /**
     * 获取当前登入用户
     * @param token
     * @return
     */
    User getCurrentUser(String token);
}
